package com.sun.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/21 13:39
 * @FileName: Outstore
 * @Description: ""
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Outstore extends Model<Outstore> {
    /**
     * 出库编号
     */
    @TableId()
    private Long outboundId;
    /**
     * 出库日期
     */
    private LocalDateTime dateTime;
    /**
     * 出库人员
     */
    private Long userId;
    /**
     * 仓库位置
     */
    private String addr;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.outboundId;
    }
}
